package com.example.demo.mapper;

import com.example.demo.vo.AsyncWorkorderVo;
import com.example.demo.vo.BackRecordVo;
import com.example.demo.vo.ReturnInReceiptListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author : Zhang.yt
 * @date : 2023/12/21
 */
@Mapper
public interface AsyncWorkorderMapper {
    List<AsyncWorkorderVo> getDistributeItemOrder(String workOrderNo, List<String> mcodeList);

    void updateBatch(@Param("list") List<AsyncWorkorderVo> list);

    void saveBatchBackRecord(@Param("backRecordVoList") List<BackRecordVo> backRecordVoList);

    void updateAsyncWorkorder(@Param("workOrderNo") String workOrderNo);

    String getAsyncWorkorder(String workOrderNo);

    BigDecimal getAsyncWorkorderMnum(@Param("workOrderNo") String workOrderNo, @Param("mcode") String mcode);

    void deleteByWordOrderNo(@Param("workOrderNo") String workOrderNo);

    void updateWmsPoLead(@Param("param") ReturnInReceiptListVo returnInReceiptListVo);
}
